{extend name="admin@public/layout/main"}

{block name="tabs"}
<div class="layui-card">
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this" click_search="true" field="category_id" field_val="">全部</li>
            {foreach $category as $k=>$v}
            <li click_search="true" field="category_id" field_val="{$v['id']}">{$v['name']}</li>
            {/foreach}
        </ul>
    </div>
</div>
{/block}

{block name="search_form"}
<div class="search-form-page-tab-content" id="search-form" style="display:none;">
    <form class="layui-form" lay-filter="laytp_search_form" style="margin-bottom:0px;">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="年级">分类</label>
            <div class="layui-input-inline">
                <select id="category_id" name="category_id" placeholder="请选择分类">
                    <option value=""></option>
                    {foreach $category as $k=>$v}
                    <option value="{$v['id']}">{$v['name']}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="年级">付费状态</label>
            <div class="layui-input-inline">
                <select id="charge_type" name="charge_type" placeholder="请选择购买方式">
                    <option value=""></option>
                    <option value="1">免费</option>
                    <option value="2">付费</option>
                    <option value="3">积分</option>
                    <option value="4">本地插件</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="laytp"><i class="layui-icon"></i> 搜 索</button>
        </div>
    </form>
</div>
{/block}

{block name="js_template"}
{include file="addons/top_toolbar"}
{include file="addons/operation"}
{/block}

{block name="script"}
<script src="__ADMIN_JS__/addons.js" charset="utf-8"></script>
{/block}